'use strict'

define(['jquery', 'bootstrap', 'select2', 'shiftform'], function($) {
  return {
    init : function(){
        
      this.unstick()
      
      this.stick()
      
      this.delete()
      
      this.online()
      
    },
    
    unstick : function() {
        $(document).on('shown.bs.modal', '#activity-unstick', function(e){

            $(e.currentTarget).find("form").shiftform()
          })
      },
    
    stick : function() {
        $(document).on('shown.bs.modal', '#activity-stick', function(e){
  
          $(e.currentTarget).find("form").shiftform()
          })
      },
      
    delete : function() {
        $(document).on('shown.bs.modal', '#activity-delete', function(e){

          $(e.currentTarget).find("form").shiftform()
          })
      },
      
    online : function() {
        $(document).on('shown.bs.modal', '#activity-online', function(e){

          $(e.currentTarget).find("form").shiftform()
          })
      },
  }
})

